//
//  Tile.h
//  Tile
//
//  Created by MajorTom on 9/7/10.
//  Copyright iphonegametutorials.com 2010. All rights reserved.
//

#import "cocos2d.h"

#import "Constants.h"

@interface Tile : NSObject {
	NSInteger x, y, value, originalValue;
	CCSprite *sprite;
    
    NSInteger x0, y0;
}

-(id) initWithX: (NSInteger) posX Y: (NSInteger) posY;
@property (nonatomic, assign) NSInteger x;
@property (nonatomic, assign) NSInteger y;
@property (nonatomic ,assign) NSInteger x0 ,y0;
@property (nonatomic) NSInteger value;
@property (nonatomic) NSInteger originalValue;
@property (nonatomic, retain) CCSprite *sprite;
-(BOOL) nearTile: (Tile *)othertile;
-(void) trade:(Tile *)otherTile;
-(CGPoint) pixPosition;
@end
